extricate yourself from situation

Translations
выкарабкаться из ситуации
He had to extricate himself from the complicated situation he was in.
Ему пришлось выкарабкаться из сложной ситуации, в которой он оказался.